package com.example.football;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

public class SiteActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_site);

        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
    }

    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.site_iv_back:
                finish();
                break;
            case R.id.site_xi:
                Intent intent = new Intent(SiteActivity.this,SiteshowActivity.class);
                intent.putExtra("site","西区足球场");
                startActivity(intent);
                break;
            case R.id.site_zhong:
                intent = new Intent(SiteActivity.this,SiteshowActivity.class);
                intent.putExtra("site","中区足球场");
                startActivity(intent);
                break;
            case R.id.site_dong:
                intent = new Intent(SiteActivity.this,SiteshowActivity.class);
                intent.putExtra("site","东区足球场");
                startActivity(intent);
                break;    
        }
    }
}
